package com.lrs.java.j2se_self.net;
import java.net.*;
import java.io.*;

public class TestTCPClient {
	public static void main(String[] args) throws Exception{
		Socket s = new Socket("127.0.0.1",8888);
		DataOutputStream dos = new DataOutputStream(s.getOutputStream());
		Thread.sleep(1000);
		dos.writeUTF("hello docket!");
		dos.close();
		s.close();
	}
}
